package com.njwb.day09.ens;

public enum HeroOfKingType implements  Obligation{

    MAGE("法师") {
        @Override
        public void target() {
            System.out.println("保住中路");
        }
    },WARRIOR("战士") {
        @Override
        public void target() {
            System.out.println("通天边路");
        }
    },TANK("坦克") {
        @Override
        public void target() {
            System.out.println("当一个合格的搅屎棍");
        }
    },ASSISTANCE("辅助") {
        @Override
        public void target() {
            System.out.println("随便浪，给视野就可以了");
        }
    },GANKING("打野") {
        @Override
        public void target() {
            System.out.println("各种乱杀");
        }
    },SHOOTER("ADC") {
        @Override
        public void target() {
            System.out.println("猥琐发育别浪");
        }
    };


    HeroOfKingType(String name) {
        this.name = name ;
    }
    private String name;


    public String getName() {
        return name;
    }


    @Override
    public void target() {
        System.out.println("赢得游戏的胜利");
    }
}
